-
Notifications
You must be signed in to change notification settings - Fork 1.4k
chore: Add ToolContextCreator. #2853
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: 虎鸣 <[email protected]>
@He-Pin thanks for your contribution. Could you share some more details about your use case for such a change? Thanks! |
interested as well - related to the other PR, this enables an execution strategy for tools. Also, as this would require some tests cases before merging. |
We are building an mcp proxy server and need some extension point. I will share more detail once I leave the airport |
@He-Pin thanks, looking forward to that! It sounds a very interesting use case! The If you define your custom @Bean
ToolCallingManager myToolCallingManager() {
return new MyMcpToolCallingManager();
} Inside I'm mentioning this also considering your other proposal: #2855. |
yes, thanks for that , but another thing is the current ToolContext is final, and then we can only put our CTX as an special field in it, if we can subclass it , we can separate our ctx from the origin CTx It would be better that there is an addition generic CtxData ctx parameter in the call method, but that will break the current binary compatibility. So that's what I was thinking, we can even pass our ctx with thread local, but that's not ideal |
@ThomasVitale what was the motivation for the |
Motivation:
Add an extension point for users to extend and create a subclass of
ToolContext